function setLoaclStorage(name, val){
    localStorage.setItem(name, JSON.stringify(val))
}

function getLoaclStorage(name){
    return JSON.parse(localStorage.getItem(name))
}

export default {
    setLoaclStorage,
    getLoaclStorage
}